package com.veidy.blog.deeplinks;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

public class ThirdActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_third);

        Intent intent = getIntent();
        String action = intent.getAction();
        Uri deeplink = intent.getData();

        String path = deeplink.getPath();

        String LastPathSegment=deeplink.getLastPathSegment();

        String key= deeplink.getQueryParameter("key");

        String name= deeplink.getQueryParameter("name");

        String sex= deeplink.getQueryParameter("sex");


    }


}
